
#include <Unit.h>

UnitType::UnitType()
{
}

Unit::Unit(const int valueInBaseUnit, const UnitType& unitType, const char* unitName)
  : valueInBaseUnit(valueInBaseUnit),
    unitType(unitType),
    nameOfUnit(unitName)
{
}

int Unit::getValueOfUnit() const
{
    return valueInBaseUnit;
}

const UnitType& Unit::getUnitType() const
{
    return unitType;
}

bool Unit::isSameUnitType(const Unit& other) const
{
    if(&(other.unitType) == &(this->unitType))
        return true;
    return false;
}

const char* Unit::getUnitName() const
{
    return nameOfUnit;
}

Unit& Unit::getBaseUnit() const
{
}

string Unit::toString(const int printModel, const int amountInBaseUnit) const
{
     return "";
}




